/*
 * Admin.cpp
 *
 *  Created on: Apr 23, 2010
 *      Author: Sequoyha
 */

#include "Admin.h"


int Administrator::passcode = 50610;

//Default Constructor - nothign to initialize since passcode is static
Administrator::Administrator(){}

//Sets Passcode to new passcode
void Administrator::setPasscode(int newPass)
{
	passcode = newPass;
}

//Returns Passcode for verification
int Administrator::getPasscode()
{
	return passcode;
}

//Sets Password for verification
void Administrator::setPassword(int input)
{
	password = input;
}

//Gets Password for verification
int Administrator::getPassword()
{
	return password;
}

//Compares Passcode to password for verification
bool Administrator::passVerify()
{
	if(password == passcode)
	{verified = true;}
	else
	{verified =  false;}
	return verified;
}

//Resets boolean found to false to prevent involuntary authentication
bool Administrator::resetVerify(){return verified = false;}
